package com.springcloud.order.dao;

import com.springcloud.order.demain.OrderInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.ZonedDateTime;
import java.util.List;

public interface OrderInfoRepository extends JpaRepository<OrderInfo,Integer> {

    List<OrderInfo> findByUserinfoId(Integer userinfoId);

    List<OrderInfo> findAllByStatusAndCreateDateBefore(String status, ZonedDateTime checkTime);

    OrderInfo findByToken(String token);
}
